package com.example.demo.entity;

import java.time.LocalDateTime;
import java.time.LocalTime;

public class Message {
    private Integer id;
    private String campus;
    private String nickname;
    private String article;
    private LocalDateTime altTime;

    public Message() {
    }

    public Message(Integer id, String campus, String nickname, String article, LocalDateTime altTime) {
        this.id = id;
        this.campus = campus;
        this.nickname = nickname;
        this.article = article;
        this.altTime = altTime;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", campus='" + campus + '\'' +
                ", nickname='" + nickname + '\'' +
                ", article='" + article + '\'' +
                ", altTime=" + altTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public LocalDateTime getAltTime() {
        return altTime;
    }

    public void setAltTime(LocalDateTime altTime) {
        this.altTime = altTime;
    }
}


